from django.contrib import admin

from client.models import Client
from client.models import ClientManager
from client.models import ClientVisit
from client.models import ClientVisitReplyDaily
from client.models import ClientVisitReplyIce
from client.models import ClientVisitReplyDailyReview
from client.models import ClientVisitReplyIceReview


@admin.register(Client)
class ClientAdmin(admin.ModelAdmin):
    list_display = ('name',)
    search_fields = ('name', 'name')


@admin.register(ClientManager)
class ClientManagerAdmin(admin.ModelAdmin):
    list_display = ('client', 'user')
    search_fields = ('client__name',)


@admin.register(ClientVisit)
class ClientVisitAdmin(admin.ModelAdmin):
    list_display = ('client',)
    search_fields = ('client__name',)


@admin.register(ClientVisitReplyDaily)
class ClientVisitReplyDailyAdmin(admin.ModelAdmin):
    list_display = ('client_visit',)


@admin.register(ClientVisitReplyIce)
class ClientVisitReplyIceAdmin(admin.ModelAdmin):
    list_display = ('client_visit',)


@admin.register(ClientVisitReplyDailyReview)
class ClientVisitReplyDailyReviewAdmin(admin.ModelAdmin):
    list_display = ('reply',)


@admin.register(ClientVisitReplyIceReview)
class ClientVisitReplyIceReviewAdmin(admin.ModelAdmin):
    list_display = ('reply',)
